/**
 * 
 */
package net.anzix.jhacks.flexclipse.editors;

import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.views.contentoutline.ContentOutlinePage;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;

/**
 * @author kocka
 *
 */
public class MXMLContentOutlinePage extends ContentOutlinePage implements IContentOutlinePage {

	/* (non-Javadoc)
	 * @see org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)
	 */
	public void createControl(final Composite parent) {
		super.createControl(parent);
		TreeViewer viewer = getTreeViewer();
		viewer.setContentProvider(new MXMLContentProvider());
		viewer.setLabelProvider(new MXMLLabelProvider());
		viewer.addSelectionChangedListener(this);
	}

}
